package com.maimang.platform.dsp.job;

import com.maimang.platform.dsp.service.AccessTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Rocky
 * @version 1.0.0
 * @classname TokenTask
 * @description <br>获取刷新token定时任务</br>
 * @date 2019-08-22 15:03
 * @email jintaozhao@qq.com
 */
@Component("tokenTask")
public class TokenTask {

	@Autowired
	private AccessTokenService accessTokenService;

	/**
	 * 获取access_token
	 */
	public void getAccessToken() {
		accessTokenService.getAccessToken();
	}

	/**
	 * 刷新access_token
	 */
	public void getRefreshToken() {
		accessTokenService.getRefreshToken();
	}
}